Skip to content

feat: conditional swap using merkle proof#32

Open
minhtr09 wants to merge 11 commits intomainfrom
conditional-swap-merkle-proof
Open

feat: conditional swap using merkle proof#32
minhtr09 wants to merge 11 commits intomainfrom
conditional-swap-merkle-proof

Conversation

@minhtr09
Copy link
Copy Markdown
Collaborator

@minhtr09 minhtr09 commented Oct 2, 2025

No description provided.

@minhtr09 minhtr09 marked this pull request as draft January 8, 2026 06:50
@minhtr09 minhtr09 marked this pull request as ready for review March 23, 2026 04:06
}

packedValue += 1 << (bytePosition * 8);
require(index <= type(uint8).max, MaxLeafIndex());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this constraint?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we pack 256 indices into a single storage slot for gas savings, the index must be < 256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants